package com.pagoda.nerp.trade.app.message.util;

import java.util.Map;

public class ParamValidUtil {

    /**
     * 接口 我的消息个数,我的消息列表
     * */
    public static String queryMsgValid(Map<String,Object> params){
        //初始化StringBuffer
        StringBuffer buf = new StringBuffer();
        buf.append("缺失参数:");

        //校验参数vendorId
        if (null == params.get("vendorId")){
            buf.append("vendorId");
        }

        if ( 5 < buf.length()){
            return buf.toString();
        }

        return null;
    }

}
